The Smart Enter feature saves your efforts by autoindentation of the caret position when you press Enter. For example, when you type
  if (a > 0){
and press Enter, the caret is automatically positioned to one indent to the right from the position just under "if".
To turn this feature on, invoke Tools | IDE Options and check the "Smart Enter" checkbox on the "Editor" page.
You must have the correct indent size and other settings set in the correspondence to your code style preferences in the "Source Code" options.